package com.mall.shop.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import lombok.Getter;
import lombok.Setter;

/**
 * 商品库存(WareSku)表实体类
 *
 * @author 龙茶清欢
 * @since 2023-01-15 13:48:07
 */
@Getter
@Setter
@TableName("wms_ware_sku")
@Schema(name = "商品库存实体", description = "商品库存映射")
public class WareSku implements Serializable {
    private static final long serialVersionUID = -39266328267416928L;

    @TableId(value = "id" , type = IdType.AUTO)
    @Schema(description = "id")
    private Long id;

    @TableField(value = "sku_id")
    @Schema(description = "sku_id")
    private Long skuId;
    
    @TableField(value = "ware_id")
    @Schema(description = "仓库id")
    private Long wareId;
    
    @TableField(value = "stock")
    @Schema(description = "库存数")
    private Integer stock;
    
    @TableField(value = "sku_name")
    @Schema(description = "sku_name")
    private String skuName;
    
    @TableField(value = "stock_locked")
    @Schema(description = "锁定库存")
    private Integer stockLocked;
    
}

